import motor.motor_asyncio
import json
from tools import dbtools



with open("dbinfo.json", "r") as db_info_file:
    db_info = json.load(db_info_file)
# mongodb://username:password@host:port/db
MONGO_DETAILS = dbtools.get_mongoDB_url(db_info["IP"], db_info["port"])

client = motor.motor_asyncio.AsyncIOMotorClient(MONGO_DETAILS)

db = client.GatherSystem

game_data_collection = db.get_collection("gameData")